package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        new MyThread1().start();
        new MyThread2().start();
    }
}

class MyThread1 extends Thread {
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("我是马楼");
        }
    }
}

class MyThread2 extends Thread {
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("哈哈哈哈哈");
        }
    }
}